package com.ken.checkviolationapp

import android.app.Application
import android.content.Context
import com.ken.base_library.base.BaseLibrarySdk

/**
 * @author by ken
 * Blog:
 * Date:2020/4/28
 * Description:
 */
class MyApplication : Application() {

    companion object {
        private lateinit var mContext: Context
        val instant: MyApplication by lazy(mode = LazyThreadSafetyMode.SYNCHRONIZED) {
            MyApplication()
        }
    }
    override fun onCreate() {
        super.onCreate()
        mContext = this
        BaseLibrarySdk.init(this)

    }


    object ApplicationContext {
        fun getContext(): Context {
            return mContext
        }
    }
    fun getContext(): Context {

        return mContext
    }


}